<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>restfull</title>
</head>
<body>
    <h3>restFull Method 测试</h3>
    <hr>
    <a th:href="@{/getMethod}">getMethod</a>
    <hr>
    <form th:action="@{/postMethod}" method="post">
        用户：<input type="text" name="name">
        <input type="submit">
    </form>
    <hr>
    <form th:action="@{/putMethod}" method="post">
        <input type="hidden" name="_method" value="PUT">
        用户：<input type="text" name="name">
        <input type="submit">
    </form>
    <hr>

    <!--
           2021-11-10 16:38:01.404  WARN 11024 --- [nio-8088-exec-2] .w.s.m.s.DefaultHandlerExceptionResolver :
           Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'DELETE' not supported]
    -->
    <form th:action="@{/deleteMethod}" method="post">
        <input type="hidden" name="_method" value="DELETE">
        用户：<input type="text" name="name">
        <input type="submit">
    </form>
</body>
</html>